﻿@using QDT.Core
@using QDT.Core.Projects
@model QDT.Core.Members.User
@{
    var projects = ViewBag.Project as ICollection<Project>;
}
@if (projects != null && projects.Count != 0)
{
    <div class="main">
        <div class="main_title">@Model.UserName 余额:@Model.UserAccount.Money.ToMoney() &nbsp;&nbsp;</div>
        <div class="blank5"></div>
        <form name="edit" action="@Url.Action("PostBid")" method="post" enctype="multipart/form-data" onsubmit=" return check_incharge_form(); ">
            <table class="form" cellpadding=0 cellspacing=0>
                <tr>
                    <td colspan=2 class="topTd"></td>
                </tr>
                <tr>
                    <td class="item_title">标编号:</td>
                    <td class="item_input">
                        <select style="width: 181px;height: 28px;" name="projectid">
                            @{
                                foreach (var p in projects.OrderByDescending(x=>x.ID))
                                {
                                    <option value="@p.ID">@(p.ID+" - 余额：" + p.NeedMoney.ToMoney())</option>
                                }
                            }
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="item_title">投资金额:</td>
                    <td class="item_input">
                        <input type="text" class="textbox require" name="money" />
                    </td>
                </tr>
                <tr>
                    <td class="item_title">&nbsp;</td>
                    <td class="item_input">
                        <input type="hidden" name="userid" value="@Model.ID"/>
                        <input type="submit" class="button" value="确认" />
                        <input type="reset" class="button" value="重置" />
                    </td>
                </tr>
                <tr>
                    <td colspan=2 class="bottomTd"></td>
                </tr>
            </table>	 
        </form>
    </div>
}
else
{
    <h1>没有满足的标</h1>
}